package com.jxtc.enterprise.admin.vo;

import com.jxtc.enterprise.admin.dto.AdminTenantStatisticDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

@Schema(description = "管理平台查询租客时返回信息")
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class TenantVO {
    @Schema(description = "租客 ID", example = "c752804d0cd410267f404dd3f0457a57")
    private String tenantId;

    @Schema(description = "租客名称", example = "张三")
    private String name;

    @Schema(description = "租客手机号", example = "18188888888")
    private String phone;

    @Schema(description = "租户密码", example = "123456")
    private String password;

    @Schema(description = "租客联系地址", example = "xx 区 xx 栋")
    private String address;

    @Schema(description = "服务的公司数量", example = "xx 区 xx 栋")
    private Integer companyCount;

    @Schema(description = "服务的店铺数量", example = "xx 区 xx 栋")
    private Integer storeCount;

    @Schema(description = "菜品份数", example = "xx 区 xx 栋")
    private Integer foodCount;

    @Schema(description = "订单份数", example = "xx 区 xx 栋")
    private Integer orderCount;

    @Schema(description = "启用状态", example = "1")
    private Integer status;

    @Schema(description = "租客备注信息", example = "这是备注信息")
    private String note;


    public TenantVO(AdminTenantStatisticDTO dto) {
        this.tenantId = dto.getTenantId();
        this.name = dto.getTenantName();
        this.phone = dto.getPhone();
        this.password = dto.getPassword();
        this.address = dto.getAddress();
        this.companyCount = dto.getCompanyCount();
        this.storeCount = dto.getStoreCount();
        this.foodCount = dto.getFoodCount();
        this.orderCount = dto.getOrderCount();
        this.status = dto.getTenantStatus();
        this.note = dto.getNote();
    }
}
